package com20230214.xiti;

public class Recursion01 {
    public static void main(String[] args) {
        int num = jc(5);
        System.out.println("5的阶乘是：" + num );

    }

    static int jc(int num){
        if ( num == 1 ){
            return 1;
        }
        return num * jc(num-1);
    }
}
